export const routes = [
  {
    path: '/',
    redirect: '/dashboard',
  },
  {
    name: '登录',
    path: '/login',
    component: './Login',
    layout: false,
  },
  {
    name: '仪表盘',
    icon: 'DashboardTwoTone',
    path: '/dashboard',
    component: './Dashboard',
  },
  {
    name: '创作中心',
    icon: 'HighlightTwoTone',
    path: '/creationCenter',
    routes: [
      {
        name: '创作',
        path: 'create',
        component: './CreationCenter/Create',
      },
      {
        name: '编辑',
        path: 'edit/:id',
        component: './CreationCenter/Create',
        hideInMenu: true,
      },
      {
        name: '草稿箱',
        path: 'draftBox',
        component: './CreationCenter/DraftBox',
      },
      {
        name: '文章列表',
        path: 'articleList',
        component: './CreationCenter/ArticleList',
      },
      {
        name: '随记列表',
        path: '/creationCenter/diaryList',
        component: './CreationCenter/DiaryList',
      },
    ],
  },
  {
    name: '标签列表',
    path: '/tags',
    component: './Tags',
    icon: 'TagTwoTone',
  },
  {
    name: '评论管理',
    path: '/comments',
    component: './Comments',
    icon: 'MessageTwoTone',
  },
  {
    path: '/*',
    component: './404.tsx',
    layout: false,
  },
];
